<template>
  <div class="container">
    <router-view></router-view>
    <router-view name="footer"></router-view>
  </div>
</template>
<script>
export default {
  name: 'App'
}
</script>
<style lang="scss">
@import '@/lib/reset.scss';
.container {
  @include rect(100%, 100%);
  @include flexbox();
  @include flex-direction(column);
  .box {
    @include flex();
    @include rect(100%, auto);
    @include overflow(auto); // 部分浏览器需要加
    @include flexbox();
    @include flex-direction(column);
    .header {
      // height: 1.43rem;
      @include rect(100%, 1.43rem);
      @include background-color(#f66);
      @include color(#fff);
      @include font-size(18px);
    }
    .content {
      @include flex();
      @include rect(100%, auto);
      @include overflow(auto);
    }
  }
  .footer {
        // 之前设计稿默认 750     350则不用
    // rem 系数 改成 37.5 ===> 遵循设计稿宽度 375px==750pt   
    // 量出的所有尺寸 先除以 2  
    // height: 50px;
    @include rect(100%, 50px);
    @include background-color(#efefef);
    ul {
      @include rect(100%, 100%);
      @include flexbox();
      li {
        @include flex(); // flex: 1;
        @include rect(auto, 100%);
        // 水平垂直居中
        @include flexbox();
        @include flex-direction(column);
        @include justify-content();
        @include align-items();

        &.router-link-exact-active,.router-link-active {
          @include color(#fe4542);
        }

        span {
          @include font-size(22px);
        }
        p {
          @include font-size(12px);
        }
      }
    }
  }
}
</style>
